﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App_Clinique.ClassLibrary.Entities
{
    public partial class ArretMaladie : Document
    {
        public ArretMaladie()
        {
            this.DateDebutArretMaladie = DateTime.Now.Date;
            this.DateFinArretMaladie = DateTime.Now.Date.AddDays(30);
        }

        [Column("RaisonMedicale"), Required, StringLength(1000)]
        public virtual String RaisonMedicale { get; set; }

        [Column("DateDebutArretMaladie"), Required]
        public virtual DateTime DateDebutArretMaladie { get; set; }

        [Column("DateFinArretMaladie"), Required]
        public virtual DateTime DateFinArretMaladie { get; set; }

        /****************************************************************************************************
         * Foreign Keys - IDs
         ***************************************************************************************************/
        [Column("ArretMaladie_DossierMedicalID", Order = 2)]
        public virtual Nullable<Guid> DossierMedicalID { get; set; }

        /****************************************************************************************************
         * Foreign Keys - Reference Objects
         ***************************************************************************************************/
        public virtual DossierMedical DossierMedical { get; set; }

        /****************************************************************************************************
         * Collections
         ***************************************************************************************************/
    }
}
